package com.ningxun.pagent.common.utils.poi;

import org.apache.poi.ss.usermodel.Cell;
import org.apache.poi.ss.usermodel.Workbook;

public class Html2TextHandler implements ExcelHandlerAdapter {
    @Override
    public Object format(Object value, String[] args, Cell cell, Workbook wb) {
        if (value == null) return "";
        // 去除所有HTML标签
        return value.toString().replaceAll("<[^>]+>", "");
    }
}